// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import axios from 'axios'
import router from './router'

import Mint from 'mint-ui'
import { Button } from 'mint-ui'
import { CellSwipe } from 'mint-ui';
import { Loadmore } from 'mint-ui';
import { Actionsheet } from 'mint-ui';

Vue.component(Loadmore.name, Loadmore);
Vue.component(CellSwipe.name, CellSwipe);
Vue.component(Actionsheet.name, Actionsheet);

Vue.use(Mint);
Vue.component(Button.name, Button);
// import MuseUI from 'muse-ui'
// import 'muse-ui/dist/muse-ui.css'
var instance = axios.create({ // 绕过axios对conten-type的拦截
    baseURL: 'http://wechat.tzucpa.cn/',
    timeout: 1000,
    headers: { 'Content-Type': 'multipart/form-data' }
});
Vue.prototype.instance = instance;

Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})